﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<MensUnoShop.Models.Product>" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Product
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div id="main-content" class="hastable">
	<div class="title title-spacing">
		<h2>商品編輯</h2>
			編輯產品資料
	</div>
    <%using (Html.BeginForm("../Product/Product", "Product", FormMethod.Post, new { @class = "shBox", enctype = "multipart/form-data" }))
    {%>
    <table cellspacing="0">
    <thead>
        <tr>
			<td style="width:100px">商品標籤</td>
			<td style="width:300px">
            <span>目前：[<%:ViewData["PDtitle"]%>]<input type="button" value="修改" onclick="javascript:document.getElementById('PDtitletagid').style.display='block';" /></span><br />
            <span id="PDtitletagid" style="display:none">調整商品標籤：
            <%:Html.DropDownList("PDtitletagidList", (IEnumerable<SelectListItem>)ViewData["PDtitletagidList"])%>
            </span>
            </td>
            <td style="width:100px"><%:Html.Hidden("PDguid", ViewData["PDguid"])%><%:Html.Hidden("PDmkguid", ViewData["PDmkguid"])%></td>
		</tr>  
        <tr>
			<td style="width:100px">商品大圖</td>
			<td style="width:300px"><img id="PDpicbig" src="<%:ViewData["PDpicbig"]%>" width="300" height="300" /></td>
            <td style="width:100px"><input type="file" id="uppicbig" name="uppicbig" width="300" height="300" /></td>
		</tr>
        <tr>
			<td style="width:100px">商品小圖</td>
			<td style="width:300px"><img id="PDpicsmall" src="<%:ViewData["PDpicsmall"]%>" width="300" height="300" /></td>
            <td style="width:100px"><input type="file" id="uppicsmall" name="uppicsmall" width="300" height="300" /></td>
		</tr>
		<%--<tr>
			<td style="width:100px">商品狀態</td>
			<td style="width:300px"><%:Html.CheckBox("MKstatus", ViewData["MKstatus"])%>(v表示上架狀態)</td>
            <td style="width:100px"></td>
		</tr>
        <tr>
			<td style="width:100px">最近修改時間</td>
			<td style="width:300px"><%:Html.Label((string)ViewData["MKlastmodify"])%></td>
            <td style="width:100px"></td>
		</tr>
		<tr>
			<td style="width:100px">新增時間</td>
			<td style="width:300px"><%:Html.Label((string)ViewData["MKdatein"])%></td>
            <td style="width:100px"></td>
		</tr>--%>
        <tr>
			<td style="width:100px"></td>
			<td style="width:300px">
            <input type="button" value="商品列表" onclick="javascript:history.back();" />
            <%if (ViewData["PDguid"] != null)
              {%>
                <input type="button" value="規格列表" onclick="javascript:location.href='/Admin/Product/SpecList/<%:ViewData["PDguid"] %>?mkguid=<%:ViewData["PDmkguid"] %>'" />    
            <%}
              else { %>              
              <input type="submit" class="submit" value="儲存" />
            <%}%>            
            </td>
            <td style="width:100px"></td>
		</tr>
	</thead>

    </table>    
    <%} %>
    <br/><br/>     
    
</div>
</asp:Content>
